
<div class="container">
	<ol class="breadcrumb">
		<li><a href="<?= WEB_PATH?>">Home</a></li>
		<li><a
			href="<?=WEB_PATH?>/index/catagory/id/<?=$this->currentCatagory->id?>"><?=$this->currentCatagory->name?></a></li>
		<li><a href="<?=WEB_PATH?>/phone/detail/id/<?=$this->phone->id?>"><?=$this->phone->name?></a></li>
	</ol>
	<h4>Điện thoại di động <?=$this->phone->name?></h4>
	<div class="row">
		<div class="col-xs-4">
			<img src="<?=WEB_PATH?>/public/imgs/<?=$this->phone->image_url?>"
				class="img-thumbnail">
		</div>
		<div class="col-xs-5">
			<div class="panel panel-success">
				<div class="panel-heading">
					<b>CÒN HÀNG</b>
				</div>
				<div class="panel-body">
					<h4>
						<b><span id="phone-price"><?=$this->phone->price?> VND</span></b>
					</h4>
					<table id="buy-table">
						<tr>
							<td>
								<form action="<?=WEB_PATH?>/customer/addtocart/id/<?=$this->phone->id?>">
									<input type="submit" class="btn btn-success" value="Mua Hàng">
								</form>
								<?php 
									$auth = Zend_Auth::getInstance();
									$email = $auth->getIdentity();
									if ($email != null) {
										$customerDb = new Application_Model_DbTable_Customer();
										$customer = $customerDb->findByEmail($email);
										$wishListDb = new Application_Model_DbTable_WishList();
										if (!$wishListDb->isAdded($customer->id, $this->phone->id)) {
								?>
										<a class="btn btn-default" href="<?=WEB_PATH?>/customer/addtowishlist/id/<?=$this->phone->id?>">Thêm vào wishlist</a>
									<?php }?>
								<?php }?>
							</td>
							<td>
								<div class="product-order-right">
									<ul>
										<li>Nhận hàng trong <strong>12 giờ </strong> tại <strong>TP. Hồ Chí Minh</strong></li>
										<li>Xem hàng tại nhà -&gt; hài lòng thanh toán</li>
										<li class="doitra">Được đổi trả trong vòng 7 ngày với chính	sách <strong>đặc biệt thuận lợi</strong></li>
										<li>Bảo hành chính hãng 12 tháng</li>
									</ul>
								</div>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<h4>Tags: </h4>
		<?php foreach($this->tags as $tag){?>
			<a href="<?=WEB_PATH?>/search/tag/tag/<?=$tag->tag_name?>"><?=$tag->tag_name?></a>
		<?php }?>
	</div>
	<div class="row">
		<div class="spec-title"><h4>Thông số kỹ thuật</h4></div>
	</div>
	<div class="row">
		<table class="table">
			<tr class="active">
				<td>Màn hình</td>
				<td><?=$this->phone->screen?></td>
			</tr>
			<tr >
				<td>CPU</td>
				<td><?=$this->phone->cpu?></td>
			</tr>
			<tr class="active">
				<td>Hệ điều hành</td>
				<td><?=$this->phone->os?></td>
			</tr>
			<tr >
				<td>Camera</td>
				<td><?=$this->phone->camera?></td>
			</tr>
			<tr class="active">
				<td>Bộ nhớ trong</td>
				<td><?=$this->phone->memory?></td>
			</tr>
			<tr >
				<td>Dung lượng pin</td>
				<td><?=$this->phone->pin?></td>
			</tr>
			<tr class="active">
				<td>Sim</td>
				<td><?=$this->phone->sim?> Sim</td>
			</tr>
			<tr class="">
				<td>Màu</td>
				<td><?=$this->phone->color?></td>
			</tr>
		</table>
	</div>
	<div class="row">
		<iframe src="https://www.facebook.com/plugins/comments.php?href=<?=WEB_PATH?>/phone/detail/id/<?=$this->phone->id?>" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:700px; height:400px;" allowTransparency="true"></iframe>
	</div>
</div>